﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DT.Core.Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("ba_user")]
    public partial class BaUser
    {
           public BaUser(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")]
           public int Id {get;set;}

           /// <summary>
           /// Desc:登录名
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="code")]
           public string Code {get;set;}

           /// <summary>
           /// Desc:用户姓名
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="name")]
           public string Name {get;set;}

           /// <summary>
           /// Desc:密码
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="password")]
           public string Password {get;set;}

           /// <summary>
           /// Desc:手机号
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="mobile_phone")]
           public string MobilePhone {get;set;}

           /// <summary>
           /// Desc:头像
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="head_image")]
           public string HeadImage {get;set;}

           /// <summary>
           /// Desc:性别  1男 0女
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="sex")]
           public int? Sex {get;set;}

           /// <summary>
           /// Desc:EMAIL
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="email")]
           public string Email {get;set;}

           /// <summary>
           /// Desc:最后登录IP
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="ip")]
           public string Ip {get;set;}

           /// <summary>
           /// Desc:最后登陆时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="last_login_time")]
           public string LastLoginTime {get;set;}

           /// <summary>
           /// Desc:最后登录客户端环境
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="last_login_environment")]
           public string LastLoginEnvironment {get;set;}

           /// <summary>
           /// Desc:创建人
           /// Default:0
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="create_man")]
           public int? CreateMan {get;set;}

           /// <summary>
           /// Desc:修改人
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="modify_man")]
           public int? ModifyMan {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CONVERT([char](19),getdate(),(120))
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="create_time")]
           public string CreateTime {get;set;}

           /// <summary>
           /// Desc:修改时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="modify_time")]
           public string ModifyTime {get;set;}

           /// <summary>
           /// Desc:是否删除
           /// Default:0
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="delete_flag")]
           public bool? DeleteFlag {get;set;}

           /// <summary>
           /// Desc:角色
           /// Default:0
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="role_id")]
           public int? RoleId {get;set;}

    }
}
